package com.hq.tomato.ms.annotation;


import com.hq.tomato.ms.strategy.DlqStrategy;
import com.hq.tomato.ms.strategy.MongoDbDlqStrategy;

import java.lang.annotation.*;

/**
 *
 *
 * @Description: <br> 可靠性策略
 * @Project: <br>
 * @CreateDate: Created in 2019-11-19 16:06 <br>
 * @Author: <a href="1026365768@qq.com">qiang.hu</a>
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ReliabilityStrategy {

    /**是否需要幂等**/
    boolean idempotent() default true;

    /**可靠性策略**/
    Class<? extends DlqStrategy> strategy() default MongoDbDlqStrategy.class;
}
